home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / doc / libasound2-plugins / speexrate.txt < prev    next >
Text File  |  2009-05-06  |  958b  |  30 lines

  1. Rate Converter Plugin Using Speex Resampler
  2. ===========================================
  3.  
  4. The plugin in rate subdirectory is an external rate converter using
  5. the Speex resampler (aka Public Parrot Hack) by Jean-Marc Valin.  You can 
  6. use this rate converter plugin by defining a rate PCM with "converter" 
  7. parameter, such as:
  8.  
  9.     pcm.my_rate {
  10.         type rate
  11.         slave.pcm "hw"
  12.         converter "speexrate"
  13.     }
  14.  
  15. The plug plugin has also a similar field, "rate_converter".
  16.  
  17. Or, more easily, define a global variable "defaults.pcm.rate_converter",
  18. which is used as the default converter type by plug and rate plugins:
  19.  
  20.     defaults.pcm.rate_converter "speexrate"
  21.  
  22. Write the above in your ~/.asoundrc or /etc/asound.conf.
  23.  
  24. The following converter types are available:
  25.  
  26.   - speexrate_best    Use quality 10 (equivalent to SRC_SINC_BEST_QUALITY)
  27.   - speexrate_medium    Use quality 5 (equivalent to SRC_SINC_MEDIUM_QUALITY)
  28.   - speexrate        Use quality 3 (equivalent to SRC_SINC_FASTEST)
  29.  
  30.